<!DOCTYPE html>
<html lang="en">
  <head>
    <title>WheelPreferences Structure Reference</title>
    <link rel="stylesheet" type="text/css" href="../../css/jazzy.css" />
    <link rel="stylesheet" type="text/css" href="../../css/highlight.css" />
    <meta charset='utf-8'>
    <script src="../../js/jquery.min.js" defer></script>
    <script src="../../js/jazzy.js" defer></script>
    
  </head>
  <body>
    <a name="//apple_ref/swift/Struct/WheelPreferences" class="dashAnchor"></a>
    <a title="WheelPreferences Structure Reference"></a>
    <header>
      <div class="content-wrapper">
        <p><a href="../../index.html">SwiftFortuneWheel 0.8.1 Docs</a> (85% documented)</p>
      </div>
    </header>
    <div class="content-wrapper">
      <p id="breadcrumbs">
        <a href="../../index.html">SwiftFortuneWheel Reference</a>
        <img id="carat" src="../../img/carat.png" />
        WheelPreferences Structure Reference
      </p>
    </div>
    <div class="content-wrapper">
      <nav class="sidebar">
        <ul class="nav-groups">
          <li class="nav-group-name">
            <a href="../../Classes.html">Classes</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../../Classes/PinImageView.html">PinImageView</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Classes/SpinButton.html">SpinButton</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Classes/SpinningWheelAnimator.html">SpinningWheelAnimator</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Classes/SwiftFortuneWheel.html">SwiftFortuneWheel</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Classes/TTUtils.html">TTUtils</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Classes/WheelLayer.html">WheelLayer</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Classes/WheelView.html">WheelView</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="../../Extensions.html">Extensions</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../../Extensions/Array.html">Array</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Extensions/CGSize.html">CGSize</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Extensions/String.html">String</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Extensions/UIColor.html">UIColor</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Extensions/UIFont.html">UIFont</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Extensions/UIImage.html">UIImage</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="../../Protocols.html">Protocols</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../../Protocols/CurveTextDrawing.html">CurveTextDrawing</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Protocols/ImageDrawing.html">ImageDrawing</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Protocols/ShapeDrawing.html">ShapeDrawing</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Protocols/SliceCalculating.html">SliceCalculating</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Protocols/SliceDrawing.html">SliceDrawing</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Protocols/SpinningAnimatable.html">SpinningAnimatable</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Protocols/SpinningAnimatorProtocol.html">SpinningAnimatorProtocol</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Protocols/TextDrawing.html">TextDrawing</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Protocols/WheelMathCalculating.html">WheelMathCalculating</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="../../Structs.html">Structures</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../../Structs/Calc.html">Calc</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Structs/ImagePreferences.html">ImagePreferences</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Structs/LinePreferences.html">LinePreferences</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Structs/Slice.html">Slice</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Structs/Slice/ContentType.html">– ContentType</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Structs/SwiftFortuneWheelConfiguration.html">SwiftFortuneWheelConfiguration</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Structs/SwiftFortuneWheelConfiguration/WheelPreferences.html">– WheelPreferences</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Structs/SwiftFortuneWheelConfiguration/CirclePreferences.html">– CirclePreferences</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Structs/SwiftFortuneWheelConfiguration/SlicePreferences.html">– SlicePreferences</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Structs/SwiftFortuneWheelConfiguration/SpinButtonPreferences.html">– SpinButtonPreferences</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Structs/SwiftFortuneWheelConfiguration/PinImageViewPreferences.html">– PinImageViewPreferences</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Structs/SwiftFortuneWheelConfiguration/Position.html">– Position</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Structs/SwiftFortuneWheelConfiguration/Margins.html">– Margins</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Structs/SwiftFortuneWheelConfiguration/ColorType.html">– ColorType</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Structs/SwiftFortuneWheelConfiguration/AnchorImage.html">– AnchorImage</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Structs/TextPreferences.html">TextPreferences</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Structs/TextPreferences/Orientation.html">– Orientation</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Structs/TextPreferences/LineBreakMode.html">– LineBreakMode</a>
              </li>
            </ul>
          </li>
        </ul>
      </nav>
      <article class="main-content">
        <section>
          <section class="section">
            <h1>WheelPreferences</h1>
              <div class="declaration">
                <div class="language">
                  <pre class="highlight swift"><code><span class="kd">struct</span> <span class="kt">WheelPreferences</span></code></pre>

                </div>
              </div>
            <p>Wheel preferences</p>

          </section>
          <section class="section task-group-section">
            <div class="task-group">
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:17SwiftFortuneWheel0abC13ConfigurationV0C11PreferencesV06circleE0AC06CircleE0Vvp"></a>
                    <a name="//apple_ref/swift/Property/circlePreferences" class="dashAnchor"></a>
                    <a class="token" href="#/s:17SwiftFortuneWheel0abC13ConfigurationV0C11PreferencesV06circleE0AC06CircleE0Vvp">circlePreferences</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Circle preferences</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">circlePreferences</span><span class="p">:</span> <span class="kt"><a href="../../Structs/SwiftFortuneWheelConfiguration/CirclePreferences.html">CirclePreferences</a></span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:17SwiftFortuneWheel0abC13ConfigurationV0C11PreferencesV05sliceE0AC05SliceE0Vvp"></a>
                    <a name="//apple_ref/swift/Property/slicePreferences" class="dashAnchor"></a>
                    <a class="token" href="#/s:17SwiftFortuneWheel0abC13ConfigurationV0C11PreferencesV05sliceE0AC05SliceE0Vvp">slicePreferences</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Slice preferences</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">slicePreferences</span><span class="p">:</span> <span class="kt"><a href="../../Structs/SwiftFortuneWheelConfiguration/SlicePreferences.html">SlicePreferences</a></span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:17SwiftFortuneWheel0abC13ConfigurationV0C11PreferencesV11layerInsetsSo06UIEdgeG0Vvp"></a>
                    <a name="//apple_ref/swift/Property/layerInsets" class="dashAnchor"></a>
                    <a class="token" href="#/s:17SwiftFortuneWheel0abC13ConfigurationV0C11PreferencesV11layerInsetsSo06UIEdgeG0Vvp">layerInsets</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Layer insets, used to center the drawing such that offseted graphics(e.g Shadows, Outer Glows) are not clipped.
Can be increased to any size if needed.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">layerInsets</span><span class="p">:</span> <span class="kt">UIEdgeInsets</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:17SwiftFortuneWheel0abC13ConfigurationV0C11PreferencesV14contentMarginsAC0G0Vvp"></a>
                    <a name="//apple_ref/swift/Property/contentMargins" class="dashAnchor"></a>
                    <a class="token" href="#/s:17SwiftFortuneWheel0abC13ConfigurationV0C11PreferencesV14contentMarginsAC0G0Vvp">contentMargins</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Margins for content inside a slide</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">contentMargins</span><span class="p">:</span> <span class="kt"><a href="../../Structs/SwiftFortuneWheelConfiguration/Margins.html">Margins</a></span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:17SwiftFortuneWheel0abC13ConfigurationV0C11PreferencesV11imageAnchorAC0G5ImageVSgvp"></a>
                    <a name="//apple_ref/swift/Property/imageAnchor" class="dashAnchor"></a>
                    <a class="token" href="#/s:17SwiftFortuneWheel0abC13ConfigurationV0C11PreferencesV11imageAnchorAC0G5ImageVSgvp">imageAnchor</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Image anchor for each slice, located at the wheel&rsquo;s border</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">imageAnchor</span><span class="p">:</span> <span class="kt"><a href="../../Structs/SwiftFortuneWheelConfiguration/AnchorImage.html">AnchorImage</a></span><span class="p">?</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:17SwiftFortuneWheel0abC13ConfigurationV0C11PreferencesV17centerImageAnchorAC0hG0VSgvp"></a>
                    <a name="//apple_ref/swift/Property/centerImageAnchor" class="dashAnchor"></a>
                    <a class="token" href="#/s:17SwiftFortuneWheel0abC13ConfigurationV0C11PreferencesV17centerImageAnchorAC0hG0VSgvp">centerImageAnchor</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Image anchor for each slice, located at the center of wheel&rsquo;s border</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">centerImageAnchor</span><span class="p">:</span> <span class="kt"><a href="../../Structs/SwiftFortuneWheelConfiguration/AnchorImage.html">AnchorImage</a></span><span class="p">?</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:17SwiftFortuneWheel0abC13ConfigurationV0C11PreferencesV13startPositionAC0G0Ovp"></a>
                    <a name="//apple_ref/swift/Property/startPosition" class="dashAnchor"></a>
                    <a class="token" href="#/s:17SwiftFortuneWheel0abC13ConfigurationV0C11PreferencesV13startPositionAC0G0Ovp">startPosition</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Start position, should be equal to FortuneWheelConfiguration.pinPreferences.position</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="k">var</span> <span class="nv">startPosition</span><span class="p">:</span> <span class="kt"><a href="../../Structs/SwiftFortuneWheelConfiguration/Position.html">Position</a></span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:17SwiftFortuneWheel0abC13ConfigurationV0C11PreferencesV06circleE005sliceE011layerInsets14contentMargins11imageAnchor011centerImageM0AeC06CircleE0V_AC05SliceE0VSo06UIEdgeI0VAC0K0VAC0mO0VSgAVtcfc"></a>
                    <a name="//apple_ref/swift/Method/init(circlePreferences:slicePreferences:layerInsets:contentMargins:imageAnchor:centerImageAnchor:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:17SwiftFortuneWheel0abC13ConfigurationV0C11PreferencesV06circleE005sliceE011layerInsets14contentMargins11imageAnchor011centerImageM0AeC06CircleE0V_AC05SliceE0VSo06UIEdgeI0VAC0K0VAC0mO0VSgAVtcfc">init(circlePreferences:<wbr>slicePreferences:<wbr>layerInsets:<wbr>contentMargins:<wbr>imageAnchor:<wbr>centerImageAnchor:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Initiates a wheel preferences</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="nf">init</span><span class="p">(</span><span class="nv">circlePreferences</span><span class="p">:</span> <span class="kt"><a href="../../Structs/SwiftFortuneWheelConfiguration/CirclePreferences.html">CirclePreferences</a></span><span class="p">,</span>
            <span class="nv">slicePreferences</span><span class="p">:</span> <span class="kt"><a href="../../Structs/SwiftFortuneWheelConfiguration/SlicePreferences.html">SlicePreferences</a></span><span class="p">,</span>
            <span class="nv">layerInsets</span><span class="p">:</span> <span class="kt">UIEdgeInsets</span> <span class="o">=</span> <span class="kt">UIEdgeInsets</span><span class="p">(</span><span class="nv">top</span><span class="p">:</span> <span class="o">-</span><span class="mi">50</span><span class="p">,</span> <span class="nv">left</span><span class="p">:</span> <span class="o">-</span><span class="mi">50</span><span class="p">,</span> <span class="nv">bottom</span><span class="p">:</span> <span class="o">-</span><span class="mi">50</span><span class="p">,</span> <span class="nv">right</span><span class="p">:</span> <span class="o">-</span><span class="mi">50</span><span class="p">),</span>
            <span class="nv">contentMargins</span><span class="p">:</span> <span class="kt"><a href="../../Structs/SwiftFortuneWheelConfiguration/Margins.html">Margins</a></span> <span class="o">=</span> <span class="kt"><a href="../../Structs/SwiftFortuneWheelConfiguration/Margins.html">Margins</a></span><span class="p">(),</span>
            <span class="nv">imageAnchor</span><span class="p">:</span> <span class="kt"><a href="../../Structs/SwiftFortuneWheelConfiguration/AnchorImage.html">AnchorImage</a></span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span>
            <span class="nv">centerImageAnchor</span><span class="p">:</span> <span class="kt"><a href="../../Structs/SwiftFortuneWheelConfiguration/AnchorImage.html">AnchorImage</a></span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>circlePreferences</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Circle preferences</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>slicePreferences</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Slice preferences</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>layerInsets</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Layer insets, default value is <code>UIEdgeInsets(top: -50, left: -50, bottom: -50, right: -50)</code></p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>contentMargins</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Margins for content inside a slide</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>imageAnchor</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Image anchor for each slice, located at the wheel&rsquo;s border, <code>optional</code></p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>centerImageAnchor</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Image anchor for each slice, located at the center of wheel&rsquo;s border, <code>optional</code></p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
          </section>
        </section>
        <section id="footer">
          <p>&copy; 2020 <a class="link" href="https://github.com/sh-khashimov/SwiftFortuneWheel.git" target="_blank" rel="external">Sherzod Khashimov</a>. All rights reserved. (Last updated: 2020-07-03)</p>
          <p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.13.4</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
        </section>
      </article>
    </div>
  </body>
</div>
</html>
